package com.apollographql.apollo.api.internal.json;

import com.apollographql.apollo.api.internal.json.ResponseJsonStreamReader;
import java.io.IOException;
import com.kt.Metadata;
import com.kt.jvm.internal.Intrinsics;

@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0017\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\n\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u0001J\u0012\u0010\u0003\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0004\u001a\u00020\u0005H\u0016¨\u0006\u0006"}, d2 = {"com/apollographql/apollo/api/internal/json/ResponseJsonStreamReader$readList$1", "Lcom/apollographql/apollo/api/internal/json/ResponseJsonStreamReader$ListReader;", "", "read", "reader", "Lcom/apollographql/apollo/api/internal/json/ResponseJsonStreamReader;", "apollo-api"}, k = 1, mv = {1, 4, 0})
/* compiled from: ResponseJsonStreamReader.kt */
public final class ResponseJsonStreamReader$readList$1 implements ResponseJsonStreamReader.ListReader<Object> {
    final /* synthetic */ ResponseJsonStreamReader this$0;

    /* JADX WARN: Incorrect args count in method signature: ()V */
    ResponseJsonStreamReader$readList$1(ResponseJsonStreamReader this$02) {
        this.this$0 = this$02;
    }

    @Override // com.apollographql.apollo.api.internal.json.ResponseJsonStreamReader.ListReader
    public Object read(ResponseJsonStreamReader reader) throws IOException {
        Intrinsics.checkParameterIsNotNull(reader, "reader");
        if (this.this$0.isNextList()) {
            return this.this$0.readList();
        }
        if (this.this$0.isNextObject()) {
            return this.this$0.readObject();
        }
        return reader.nextScalar(true);
    }
}
